const {baseService} =require('../../baseService')
// const {auth_bean} =require('../../../beans/impl/auth_bean/index')
const {auth_model} =require('../../../dao/model/model')
const { baseService2 } = require('../../baseService2')

/* 
1,修改导入的bean,和model,就是上面
2,把构造方法里的这些都改下

*/

/* 异常类 */
class auth_serviceError extends Error {
    constructor(error,message='auth_service'){
        super()
        this.error = error
        this.message=message
    }
}


class auth_service  extends baseService2{

    static ins = new auth_service()

    constructor(){
        super(auth_model,auth_serviceError)
    }

    static getIns (){
        if(this.ins){
            return this.ins
        }else{
            return new auth_service()
        }
    }


}







module.exports={auth_service}
